<!doctype html>
<html lang="en">
<!-- head 区域 - 开始 -->
<?php
$title='数据统计';
require_once('head.php');
if($userrow['uid']!=1){exit("<script language='javascript'>window.location.href='login.php';</script>");}
?>
<!-- head 区域 - 结束 -->

<body data-topbar="dark" data-layout="horizontal">

  <!-- 页面 - 开始 -->
  <div id="layout-wrapper">

    <!-- 头部区域 - 开始 -->
    <?php include('header.php'); ?>
    <!-- 头部区域 - 结束 -->

    <!-- 顶部导航栏 - 开始 -->
    <?php include('topnav.php'); ?>
    <!-- 顶部导航栏 - 结束 -->

    <!-- 主内容区域 - 开始 -->
    <div class="main-content">

      <div class="page-content">
        <div class="container-fluid">

          <div class="row mt-4">
            <div class="col-12">
              <div class="card">
                <div class="card-body">

                  <h4 class="card-title mb-4">数据统计</h4>

                  <div class="row justify-content-center">
                    <div class="col-sm-3">
                      <div class="text-center">
                        <h5 class="mb-0 font-size-20">
                          <?php
                            // $a=$DB->count("select count(*) from qingka_wangke_user ");			                		                	
                            // echo $a;		                		                	
                          ?>
                          6589
                        </h5>
                        <p class="text-muted">总用户</p>
                      </div>
                    </div>
                    <div class="col-sm-3">
                      <div class="text-center">
                        <h5 class="mb-0 font-size-20">
                          <?php
                            // $a=$DB->count("select count(*) from qingka_wangke_user where addtime>'$jtdate'  ");			                		                	
                            // echo $a;		                		                	
                          ?>
                          45
                        </h5>
                        <p class="text-muted">今日新增用户</p>
                      </div>
                    </div>
                    <div class="col-sm-3">
                      <div class="text-center">
                        <h5 class="mb-0 font-size-20">
                          <?php
                            //$a=$DB->count("select count(*) from qingka_wangke_order where addtime>'$jtdate'  ");
                            //echo $a;	                	
                          ?>
                         5467
                        </h5>
                        <p class="text-muted">今日订单</p>
                      </div>
                    </div>
                    <div class="col-sm-3">
                      <div class="text-center">
                        <h5 class="mb-0 font-size-20">
                          &yen;
                          <?php
                            //$a=$DB->query("select * from qingka_wangke_order where addtime>'$jtdate'  ");			                	
                             // while($c=$DB->fetch($a)){
                                //$zcz+=$c['fees'];
                           // }			                	
                           // echo $zcz		                		                	
                          ?>
                          832
                        </h5>
                        <p class="text-muted">今日销售</p>
                      </div>
                    </div>
                  </div>

                </div>
              </div>
            </div> <!-- end col -->

          </div>
          <!-- end row -->

        </div> <!-- container-fluid -->
      </div>
      <!-- End Page-content -->

      <!-- 底部版权区域 - 开始 -->
      <?php include('copyright.php'); ?>
      <!-- 底部版权区域 - 结束 -->

    </div>
    <!-- 主内容区域 - 结束 -->
  </div>
  <!-- 页面 - 结束 -->

  <!-- 底部文件 - 开始 -->
  <?php include('footer.php'); ?>
  <!-- 底部文件 - 结束 -->

</body>

</html>